-
Notifications
You must be signed in to change notification settings - Fork 95
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add itest for MinRelayFee check in tapd #892
Conversation
9c10445
to
a4d76ed
Compare
6b38cf0
to
3a8f1f6
Compare
2506456
to
de86073
Compare
I've removed the default value of 1 for |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 👍🏽
One related comment about how we handle this feerate arg, but it can be addressed in a separate PR.
This commit removes the default value of 1 for `sat_per_vbyte` that's being passed to `litd` rpc endpoint `fundchannel`. `litd` handles this now perfectly on its own, and adding logic here only adds to the confusion.
This commit adds an integration test for the MinRelayFee check. The test ensures that transactions with fees below the minimum relay fee are rejected.
b4a86ac
to
13fa097
Compare
}, | ||
) | ||
|
||
errFeeRateTooLow := fmt.Sprintf("fee rate %s too low, "+ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This actually shows a problem with the sat/vByte fee rate... Because 1 sat/vByte is equal to 250 sat/kw but the absolute minimum relay fee there can ever be is defined as 253 sat/kw, this would mean that you could only fund channels with at least 2 sat/vBytes. Which is kind of unfortunate.
But I think we should fix this in tapd and unrelated to this PR. Just letting you know that this might change again in the future.
This commit adds an integration test for the MinRelayFee check. The test ensures that transactions with fees below the minimum relay fee are rejected.
This PR depends on lightninglabs/taproot-assets#1163 which in turn depends on lightninglabs/lndclient#200
It uses pseudoversions in
go.mod
forbothtaproot-assets
andthat should be updated before merging.lndclient